﻿using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;

namespace JYJ.AiYard.Migrations
{
    public partial class Add_Tb_YardDeviceEnities : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {

            migrationBuilder.CreateTable(
                name: "Tb_YardDevice",
                schema: "Dbo",
                columns: table => new
                {
                    Id = table.Column<long>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    Station_ID = table.Column<long>(maxLength: 65, nullable: false),
                    TDev_No = table.Column<int>(maxLength: 65, nullable: false),
                    TDev_Type = table.Column<string>(maxLength: 65, nullable: true),
                    TDev_Name = table.Column<string>(maxLength: 65, nullable: true),
                    TDev_IP = table.Column<string>(maxLength: 65, nullable: true),
                    TDev_Port = table.Column<int>(maxLength: 65, nullable: false),
                    TDev_Line = table.Column<int>(maxLength: 65, nullable: false),
                    TDev_Width = table.Column<int>(maxLength: 65, nullable: false),
                    TDev_Height = table.Column<int>(maxLength: 65, nullable: false),
                    TenantId = table.Column<int>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Tb_YardDevice", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Tb_YardDevice",
                schema: "Dbo");
           
        }
    }
}
